package com.study.talk.netty.message.request;

import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

/**
 * 消息请求
 */

public class MessageRequest extends TalkMessage {

    //("接收方id")
    private Integer receiverId;

    //("消息内容")
    private String content;

    //("消息类型")
    private int messageType = 0;

    @Override
    public byte getType() {
        return MessageType.SEND_MESSAGE_REQUEST;
    }


    public MessageRequest(Integer receiverId, String content, int messageType) {
        this.receiverId = receiverId;
        this.content = content;
        this.messageType = messageType;
    }

    public MessageRequest() {
    }

    public Integer getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Integer receiverId) {
        this.receiverId = receiverId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }
}
